
package com.goseet.utils;

import java.io.File;

public final class d extends File {
    private char a;

    private char b;

    public d(String s) {
        super(s);
        a = '.';
        b = '_';
    }

    public final String a() {
        String s = getName();
        char c1 = a;
        int i = s.lastIndexOf(c1) + 1;
        return s.substring(i);
    }

    public final String b() {
        String s = getName();
        char c1 = a;
        int i = s.lastIndexOf(c1);
        char c2 = File.separatorChar;
        int j = s.lastIndexOf(c2) + 1;
        return s.substring(j, i);
    }

    public final String c() {
        String s = b();
        char c1 = b;
        int i = s.lastIndexOf(c1);
        if (i != -1)
            s = s.substring(0, i);
        return s;
    }
}
